﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace HPCERP.WebSite.Areas.Commerce
{
    public class Routes : AreaRegistration
    {
        public override string AreaName
        {
            get { return "Commerce"; }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                 "Commerce_Default",                                   // Route name
                 "Commerce/{controller}/{action}/{id}",                // URL with parameters
                 new { controller = "Home", action = "Index", id = "" },  // Parameter defaults
                 null,
                new string[] {"Commerce"}
              );
        }
    }
}